package com.demo.common.model.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

@SuppressWarnings({"serial","unchecked"})
public abstract class BaseGoods<M extends BaseGoods<M>> extends Model<M> implements IBean  {

	public M setId(java.lang.Integer id) {
		set("id", id);
		return (M)this;
	}
	
	public java.lang.Integer getId() {
		return getInt("id");
	}

	public M setCode(java.lang.String code) {
		set("code",code);
		return (M)this;
	}
	
	public java.lang.String getCode(){
		return getStr("code");
	}
	
	public M setWeight(	java.math.BigDecimal weight){
		set("weight",weight);
		return (M)this;
	}
	
	public 	java.math.BigDecimal getWeight(){
		return getBigDecimal("weight");
	}
	
	public M setWeightime(java.sql.Timestamp weightime){
		set("weightime",weightime);
		return (M)this;
	}
	
	public java.sql.Timestamp getWeightime(){ 
		return getTimestamp("weightime");
	}
}
